<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link href="<c:url value='/admin/css/general.css' />" rel="stylesheet" type="text/css" />
</head>
<script type="text/javascript">
var message = "";
var error = "${ exception }";
var url = "";
if (error) {
	message = "${ exception.message }";
	url = "${ exception.errorMessage.redirectUrl }";
} else {
	message = "${ errorMsg }";
	url = "${ requestScope.redirectUrl }";
}

function goPage() {	
	if (url) {
		url = "<c:url value='/'/>" + url;
		document.location.href = url;
	} else {
		history.go(-1);
	}
}
</script>
<body>
<div class="error">
	<div>
		<h5>错误信息如下:</h5>
		<span>
		<script type="text/javascript">
		document.writeln(message);
		</script>
		</span>
		<a href="javascript:goPage();">返回</a>
	</div>
</div>
</body>
</html>